namespace Identity.Application.Contracts.Common;

public class CreateUserResult
{
    public bool Succeeded { get; init; }
    public IEnumerable<string> Errors { get; init; } = Array.Empty<string>();
    public Guid UserId { get; init; }
    public static CreateUserResult Success(Guid Id) =>new() { Succeeded = true, Errors = Array.Empty<string>(),UserId=Id }; 
    public static CreateUserResult Failed(IEnumerable<string> errors) => new() { Succeeded = false, Errors = errors };
}